import { addColumnEllipsis, dateRender } from "utils/common";
const columnWidth = 80;

let columns = [
  {
    dataIndex: "id",
    title: "ID",
    align: 'center',
    width: 50
  },
  {
    dataIndex: "orderNo",
    title: "售后单号",
    width: 150
  },
  {
    dataIndex: "orderNofrom",
    title: "原订单号",
    width: 150
  },
   {
    dataIndex: "username",
    title: "会员昵称",
     align: 'center',
     width: 100
  },
  {
   dataIndex: "mobile",
   title: "电话",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "payPrice",
    title: "可退金额(元)",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderType",
    title: "退款方式",
    scopedSlots: { customRender: "orderType" },
    align: 'center',
    width: 100
  },
  {
    dataIndex: "returnReason",
    title: "退款原因",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderStatus",
    title: "售后状态",
    scopedSlots: { customRender: "orderStatus" },
    align: 'center',
    width: 100
  },
  {
    dataIndex: "createTime",
    title: "创建时间",
    align: 'center',
    width: 140
  },
  {
    dataIndex: "operation",
    title: "操作",
    scopedSlots: { customRender: "operation" },
    align: "center",
    width: 120,
    fixed: 'right'
  }
];

columns = addColumnEllipsis(columns);
export default columns;
